import { config } from '../../config/index';

const mockFentchCouponData = () => {
  const { delay } = require('../_utils/delay');
  const { getCouponList } = require('../../model/coupon');
  return delay().then(() => getCouponList().couponList);
};

export const fentchCouponInfoList = () => {
  if (config.useMock) {
    return mockFentchCouponData();
  }
}